package logik;

import gui.Screen;

/**
 * @author Matthias
 * Represents account info ATM transaction
 */
public class AccountInfo extends Transaction {
	
	// AccountInfo constructor
	public AccountInfo(PerformTransactions perform) {
		super(perform);
	} 

	@Override
	public void execute() {
		// display the balance information on the screen
		getClassPerform().getClassATM().getClassScreen().getAccAccountInfo().showFields(getAccNr(),
				getAccType(), getInterestRate(), getTotBal());
		
		getClassPerform().getClassATM().getClassScreen().show(Screen.ACCACCOUNTINFO);
	} // end method execute

} // end class AccountInfo